package cn.itcast.hotel.service;

import cn.itcast.hotel.pojo.Hotel;
import cn.itcast.hotel.pojo.result.FilterResult;
import cn.itcast.hotel.pojo.result.PageResult;
import cn.itcast.hotel.pojo.vo.RequestParams;
import cn.itcast.hotel.pojo.vo.RequestTermParams;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;

public interface IHotelService extends IService<Hotel> {

    /**
     * 搜索查询(分页条件查询)
     * @param requestParams
     * @return
     */
    PageResult searchPageInfo(RequestTermParams requestParams) throws IOException;

    /**
     * 过滤查询
     * @param requestTermParams
     * @return
     */
    FilterResult searchFilter(RequestTermParams requestTermParams) throws IOException;


    /**
     * 拼音补全搜索
     * @param key
     * @return
     */
    List<String> searchSpell(String key) throws IOException;
}
